﻿using System;
using System.Runtime.InteropServices;

namespace DbSharp.Utils.ShellApi
{
    class ShellApi
    {
        // Methods
        public ShellApi()
        {
        }

        [DllImport("user32.dll")]
        public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);

        [DllImport("user32.dll")]
        public static extern bool SetForegroundWindow(IntPtr hWnd);

        //[DllImport("user32.dll")]
        //public static extern bool GetWindowInfo(IntPtr hwnd, ref WINDOWINFO pwi);

        [DllImport("user32.dll")]
        public static extern IntPtr GetActiveWindow();
    }
}


